package org.deng.learn.designpattern.decorator;

/**
 * @author DengLibin
 * @Description 解密流(可以解密文件流 内存流) 解密装饰
 * @Date 2019/2/20 0020 14:46
 */
public class DecryptStream extends DecoratorStream {

    public DecryptStream(Stream stream) {
        super(stream);
    }

    @Override
    public void read() {
        System.out.println("解密了");
        stream.read();
    }
}
